package main

import "fmt"

func main() {
	mouths := [...]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}
	fmt.Println(mouths)
	Q2 := mouths[4:7]
	summer := mouths[6:9]
	fmt.Println(Q2)
	fmt.Println(summer)

	for _, v1 := range Q2 {
		for _, v2 := range summer {
			if v1 == v2 {
				fmt.Println(v1, v2)
			}
		}
	}

	a := [...]int{1, 2, 3, 4, 5}
	reverse(a[:])
	fmt.Println(a)
}

func reverse(s []int) {
	for i, j := 0, len(s)-1; i < j; i, j = i+1, j-1 {
		s[i], s[j] = s[j], s[i]
	}
}
